<template>
    <div>
        <h1>第一层</h1>
    </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import { useRoute,useRouter } from 'vue-router';

export default defineComponent({
    setup () {
        const route = useRoute();
        console.log(route);
        console.log(route.query.id);
        const router = useRouter();
        console.log(router);

        
        
        

        return {}
    },
    mounted() {
        console.log(this.$route);
        
    }
})
</script>

<style scoped>

</style>